<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>demo</title>
<link rel="stylesheet" href="lib/lib/css/bootstrap.min.css">
<style type="text/css">

</style>
</head>
<body>


<div class="container">
	<button type="button" data-loading-text="等待3s之后复原状态" class="btn btn-success " id="btn1">按钮</button>
</div>



<script src="lib/jquery/jquery-1.11.0.min.js"></script>
<script src="lib/lib/js/bootstrap.min.js"></script>
<script type="text/javascript">
	
	$("#btn1").on("click",function(el){
		var btn = $(this).button('loading')//等待作用

		setTimeout(function(el){//复原作用
			btn.button('reset')
		},1000)

	})



</script>

</body>
</html>